package com.yc.demo;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
// 判断环境参数是否符合条件
@ConditionalOnProperty(prefix = "yc.demo", value = "enable")
@ComponentScan("com.yc.demo")
public class DemoApp {

}
